package com.woniuxy.woniuhis.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Delete;

import com.woniuxy.woniuhis.entity.Log;

/**
 *	系统日志mapper 
 *
 */
public interface LogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Log record);

    int insertSelective(Log record);

    Log selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Log record);

    int updateByPrimaryKey(Log record);

    @Delete("delete from tb_log where create_time <= #{time}")
    int deleteLogByDate(Date time);
}